<template>
  <div>
    <div @click = "addNum" style="width: 200px;background: #1989fa;margin-top: 20px">点击添加</div>
    <div>{{this.$store.state.order.numReduce}}</div>
  </div>
</template>
<script>
  import { mapActions } from 'vuex'
  export default {
    name: '404',
    methods: {
      ...mapActions({
       comNum: 'order/useAddOne'
      }),
      addNum () {
        this.comNum()
      }
    }
  }
</script>
